import axios from "../../axios"

export default {
    addParkings(newParkings) {
        return axios({
            url: '/parkings/addParkings',
            method: 'post',
            data: newParkings
        })
    },
    //审核车位渲染列表
    auditParkings(params) {
        return axios({
            url: '/parkings/auditparkings',
            methods: "get",
            params
        })
    },

    getState(params) {
        return axios({
            url: '/parkings/getState',
            methods: 'get',
            params
        })
    },
    //查询车辆
    getparkings(Parkings){
        return axios({
            url:'/parkings/getparkings',
            method:'get',
            params:Parkings
        })
    }
}
